package com.walle.userservice.service;

import com.walle.common.dto.MailDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author zhangjiapeng
 * @Package com.walle.common.service.rabbit
 * @Description: ${todo}
 * @date 2018/12/27 11:05
 */
@FeignClient("RABBIT-SERVICE")
@Component
public interface MailService {

    @PostMapping("/rabbit/mail/send")
    void sendMail(@RequestBody MailDto mailDto);
}
